/// YApi QuickType插件生成，具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation

import 'dart:convert';

Student studentFromJson(String str) => Student.fromJson(json.decode(str));

String studentToJson(Student data) => json.encode(data.toJson());

class Student {
    Student({
        required this.sex,
        required this.name,
         this.id,
        required this.age,
    });

    int sex;
    String name;
    int? id;
    int age;

    factory Student.fromJson(Map<dynamic, dynamic> json) => Student(
        sex: json["sex"],
        name: json["name"],
        id: json["id"],
        age: json["age"],
    );

    Map<dynamic, dynamic> toJson() => {
        "sex": sex,
        "name": name,
        "id": id,
        "age": age,
    };
}
